FROM maven:3.6-jdk-11
COPY boot.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/boot.sh
RUN mkdir /var/log/myapp
#非基于系统镜像，无法安装
#RUN bash yum install -y dos2unix && dos2unix /usr/local/bin/boot.sh
# 添加 tail -f /dev/null 执行完shell不退出 否则启动完app自动退出,循环启动
#CMD /usr/local/bin/boot.sh restart hdhere && tail -f /dev/null
#启动容器时打包
#CMD mvn clean install